package com.ghxxzx.daglcustom.vo;


/**
 * desc:
 *
 * @author cx316
 * Created by cx316 on 2020-02-12.
 */
public class PageQuery {
    private Integer pageNum;
    private Integer pageSize;

    public PageQuery() {
    }

    public PageQuery(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        if(pageNum<1){
            pageNum = 1;
        }
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        if(pageSize<1){
            pageSize = 1;
        }
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
